package spring.gateWay;

import java.util.Date;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import camila.gateway.filters.common.DetermineValideSupport.ResponseWrapper;

public class TestResponseWrapper implements ResponseWrapper{

	@Override
	public String buildTokenInfo(String str, Map<String,Object> value) {
		value.put("opeTime", new Date().toString());
		JSONObject jo = (JSONObject)JSONObject.parse(str);
		value.put("token", jo.getString("autorizer"));
		System.out.println("-------------------------------------------------------------------");
		return String.valueOf(value.get("token"));
	}
	
}
